<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Cryptic Cabinet: CrypticCabinet.UI.Modal.ModalMessageWithButtons Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectlogo"><img alt="Logo" src="Logo 100x100px.png"/></td>
  <td id="projectalign">
   <div id="projectname">Cryptic Cabinet
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.8 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('class_cryptic_cabinet_1_1_u_i_1_1_modal_1_1_modal_message_with_buttons.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="class_cryptic_cabinet_1_1_u_i_1_1_modal_1_1_modal_message_with_buttons-members.html">List of all members</a>  </div>
  <div class="headertitle"><div class="title">CrypticCabinet.UI.Modal.ModalMessageWithButtons Class Reference</div></div>
</div><!--header-->
<div class="contents">

<p>A convenient modal window with two customizable buttons that can show a text message to the user and provide actions on button press.  
 <a href="class_cryptic_cabinet_1_1_u_i_1_1_modal_1_1_modal_message_with_buttons.html#details">More...</a></p>
<div class="dynheader">
Inheritance diagram for CrypticCabinet.UI.Modal.ModalMessageWithButtons:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_cryptic_cabinet_1_1_u_i_1_1_modal_1_1_modal_message_with_buttons.png" usemap="#CrypticCabinet.UI.Modal.ModalMessageWithButtons_map" alt=""/>
  <map id="CrypticCabinet.UI.Modal.ModalMessageWithButtons_map" name="CrypticCabinet.UI.Modal.ModalMessageWithButtons_map">
<area href="class_cryptic_cabinet_1_1_u_i_1_1_modal_1_1_modal_message.html" title="Handles the logic for a generic Modal message UI." alt="CrypticCabinet.UI.Modal.ModalMessage" shape="rect" coords="0,56,305,80"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a55a04279611a337d6ee803ccacf09866" id="r_a55a04279611a337d6ee803ccacf09866"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_cryptic_cabinet_1_1_u_i_1_1_modal_1_1_modal_message_with_buttons.html#a55a04279611a337d6ee803ccacf09866">Initialize</a> (string message, string button1Text, Action button1Action, string button2Text, Action button2Action, Action onAnyButtonPressed)</td></tr>
<tr class="memdesc:a55a04279611a337d6ee803ccacf09866"><td class="mdescLeft">&#160;</td><td class="mdescRight">Call this to initialize the buttons for this modal. If the button text is set to String.Empty, the button will not show in the modal.  <br /></td></tr>
<tr class="separator:a55a04279611a337d6ee803ccacf09866"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a77c6b4b13f48e7debba4a47ef17fcd7b" id="r_a77c6b4b13f48e7debba4a47ef17fcd7b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_cryptic_cabinet_1_1_u_i_1_1_modal_1_1_modal_message_with_buttons.html#a77c6b4b13f48e7debba4a47ef17fcd7b">Uninitialize</a> ()</td></tr>
<tr class="memdesc:a77c6b4b13f48e7debba4a47ef17fcd7b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Call this function to clear all fields of this modal.  <br /></td></tr>
<tr class="separator:a77c6b4b13f48e7debba4a47ef17fcd7b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af6c672c0745174d94062b60fb8389b60" id="r_af6c672c0745174d94062b60fb8389b60"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_cryptic_cabinet_1_1_u_i_1_1_modal_1_1_modal_message_with_buttons.html#af6c672c0745174d94062b60fb8389b60">OnButton1Clicked</a> ()</td></tr>
<tr class="memdesc:af6c672c0745174d94062b60fb8389b60"><td class="mdescLeft">&#160;</td><td class="mdescRight">Run the callback associated to the button 1 click.  <br /></td></tr>
<tr class="separator:af6c672c0745174d94062b60fb8389b60"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2ed2d65e85fb0a20bde802b96dea1e1f" id="r_a2ed2d65e85fb0a20bde802b96dea1e1f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_cryptic_cabinet_1_1_u_i_1_1_modal_1_1_modal_message_with_buttons.html#a2ed2d65e85fb0a20bde802b96dea1e1f">OnButton2Clicked</a> ()</td></tr>
<tr class="memdesc:a2ed2d65e85fb0a20bde802b96dea1e1f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Run the callback associated to the button 2 click.  <br /></td></tr>
<tr class="separator:a2ed2d65e85fb0a20bde802b96dea1e1f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_cryptic_cabinet_1_1_u_i_1_1_modal_1_1_modal_message"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_cryptic_cabinet_1_1_u_i_1_1_modal_1_1_modal_message')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="class_cryptic_cabinet_1_1_u_i_1_1_modal_1_1_modal_message.html">CrypticCabinet.UI.Modal.ModalMessage</a></td></tr>
<tr class="memitem:a875dc2678a737c43be8574a5b127f0ff inherit pub_methods_class_cryptic_cabinet_1_1_u_i_1_1_modal_1_1_modal_message" id="r_a875dc2678a737c43be8574a5b127f0ff"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_cryptic_cabinet_1_1_u_i_1_1_modal_1_1_modal_message.html#a875dc2678a737c43be8574a5b127f0ff">SetText</a> (string text)</td></tr>
<tr class="separator:a875dc2678a737c43be8574a5b127f0ff inherit pub_methods_class_cryptic_cabinet_1_1_u_i_1_1_modal_1_1_modal_message"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>A convenient modal window with two customizable buttons that can show a text message to the user and provide actions on button press. </p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="a55a04279611a337d6ee803ccacf09866" name="a55a04279611a337d6ee803ccacf09866"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a55a04279611a337d6ee803ccacf09866">&#9670;&#160;</a></span>Initialize()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CrypticCabinet.UI.Modal.ModalMessageWithButtons.Initialize </td>
          <td>(</td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>message</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>button1Text</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Action&#160;</td>
          <td class="paramname"><em>button1Action</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>button2Text</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Action&#160;</td>
          <td class="paramname"><em>button2Action</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Action&#160;</td>
          <td class="paramname"><em>onAnyButtonPressed</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Call this to initialize the buttons for this modal. If the button text is set to String.Empty, the button will not show in the modal. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">message</td><td>Message to show on this modal.</td></tr>
    <tr><td class="paramname">button1Text</td><td>Text for button 1</td></tr>
    <tr><td class="paramname">button1Action</td><td>Action to perform when button 1 is pressed</td></tr>
    <tr><td class="paramname">button2Text</td><td>Text for button 2</td></tr>
    <tr><td class="paramname">button2Action</td><td>Action to perform when button 2 is pressed</td></tr>
    <tr><td class="paramname">onAnyButtonPressed</td><td>Optional action to perform when any of the buttons is pressed</td></tr>
  </table>
  </dd>
</dl>

<p class="reference">References <a class="el" href="class_cryptic_cabinet_1_1_u_i_1_1_modal_1_1_modal_message.html#a875dc2678a737c43be8574a5b127f0ff">CrypticCabinet.UI.Modal.ModalMessage.SetText()</a>, and <a class="el" href="class_cryptic_cabinet_1_1_u_i_1_1_modal_1_1_modal_message_with_buttons.html#a77c6b4b13f48e7debba4a47ef17fcd7b">CrypticCabinet.UI.Modal.ModalMessageWithButtons.Uninitialize()</a>.</p>

</div>
</div>
<a id="af6c672c0745174d94062b60fb8389b60" name="af6c672c0745174d94062b60fb8389b60"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af6c672c0745174d94062b60fb8389b60">&#9670;&#160;</a></span>OnButton1Clicked()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CrypticCabinet.UI.Modal.ModalMessageWithButtons.OnButton1Clicked </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Run the callback associated to the button 1 click. </p>

</div>
</div>
<a id="a2ed2d65e85fb0a20bde802b96dea1e1f" name="a2ed2d65e85fb0a20bde802b96dea1e1f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2ed2d65e85fb0a20bde802b96dea1e1f">&#9670;&#160;</a></span>OnButton2Clicked()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CrypticCabinet.UI.Modal.ModalMessageWithButtons.OnButton2Clicked </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Run the callback associated to the button 2 click. </p>

</div>
</div>
<a id="a77c6b4b13f48e7debba4a47ef17fcd7b" name="a77c6b4b13f48e7debba4a47ef17fcd7b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a77c6b4b13f48e7debba4a47ef17fcd7b">&#9670;&#160;</a></span>Uninitialize()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CrypticCabinet.UI.Modal.ModalMessageWithButtons.Uninitialize </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Call this function to clear all fields of this modal. </p>

<p class="reference">References <a class="el" href="class_cryptic_cabinet_1_1_u_i_1_1_modal_1_1_modal_message.html#a875dc2678a737c43be8574a5b127f0ff">CrypticCabinet.UI.Modal.ModalMessage.SetText()</a>.</p>

<p class="reference">Referenced by <a class="el" href="class_cryptic_cabinet_1_1_u_i_1_1_modal_1_1_modal_message_with_buttons.html#a55a04279611a337d6ee803ccacf09866">CrypticCabinet.UI.Modal.ModalMessageWithButtons.Initialize()</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="_modal_message_with_buttons_8cs.html">ModalMessageWithButtons.cs</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="namespace_cryptic_cabinet.html">CrypticCabinet</a></li><li class="navelem"><a class="el" href="namespace_cryptic_cabinet_1_1_u_i.html">UI</a></li><li class="navelem"><a class="el" href="namespace_cryptic_cabinet_1_1_u_i_1_1_modal.html">Modal</a></li><li class="navelem"><a class="el" href="class_cryptic_cabinet_1_1_u_i_1_1_modal_1_1_modal_message_with_buttons.html">ModalMessageWithButtons</a></li>
    <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.8 </li>
  </ul>
</div>
</body>
</html>
